// 引入路由
const authRoutes = require('./routes/auth');
const adminRoutes = require('./routes/admin');
const userRoutes = require('./routes/admin/user'); // 新增用户管理路由
 
// 设置路由
app.use('/api/auth', authRoutes);
app.use('/api/admin', adminRoutes);
app.use('/api/admin', userRoutes); // 添加用户管理路由 